Component({
  properties: {
    layout: {
      type: Object,
      value: {
        id: 1,
        poster: "/assets/poster.png",
        title: "",
        tags: []
      }
    }
  },
  data: {},
  methods: {
    getDetail() {
      console.log(`/pages/detail/index?id=${this.data.layout.id}&poster=${this.data.layout.poster}&variant=activity`)
      wx.navigateTo({
        url: `/pages/detail/index?variant=activity&id=${this.data.layout.id}&poster=${this.data.layout.poster}`
      })
    }
  }
});
